#include "log.h"

Log_Record::Log_Record() {

}

Log_Record::~Log_Record(){

}

char* Log_Record::get_current_time(MYSQL *con) {
    char sql_query[100];
    sprintf(sql_query, "SELECT NOW()");
    mysql_query(con, sql_query);
    MYSQL_RES *res = mysql_store_result(con);
    MYSQL_ROW row;
    while(row = mysql_fetch_row(res)) {
        return row[0];
    }
    return NULL;
}
